package com.leo.quartz.controller;

import com.leo.base.AbstractController;
import com.leo.quartz.common.lang.PageView;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 首页
 *
 * @author liusl
 * @version 1.0
 * @date 2018/12/5 20:55
 */
@Controller
public class IndexController extends AbstractController {
    @RequestMapping("/index.html")
    public ModelAndView home() {
        return buildModelAndView(PageView.INDEX);
    }

    @RequestMapping("/")
    public ModelAndView index() {
        return buildModelAndView(PageView.INDEX);
    }

}
